<?php
//广告接口
class AdAction extends AuthbaseAction {
	public function __construct()
	{
		parent::__construct();
	}
    public function index(){
    	$typeid = trim($this->_request("typeid"));
    	$d = D("Api/Ad");
    	$res = $d->queryAdList($typeid);
    	exit(json_encode($res));
    }
}